﻿using GYCTOAManagementSystemNewApi.Model.Tool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GYCTOAManagementSystemNewApi.Model
{ 
    /// <summary>
   /// OA审批规则实体,目前最多支持6个审批人
   /// </summary>
    public class AuditRule: Operate
    {
        /// <summary>
        /// 关联的OA菜单编码
        /// </summary>
        public string ModuleNumber { get; set; }
        /// <summary>
        /// 审批发起人、发起条件为员工
        /// </summary>
        public string SponsorUser { get; set; }
        /// <summary>
        /// 审批发起人、发起条件为部门
        /// </summary>
        public string SponsorDepart { get; set; }
        /// <summary>
        /// 第一审批人
        /// </summary>
        public int AuditUserId1 { get; set; }
        /// <summary>
        /// 第二审批人
        /// </summary>
        public int AuditUserId2 { get; set; }
        /// <summary>
        /// 第三审批人
        /// </summary>
        public int AuditUserId3 { get; set; }
        /// <summary>
        /// 第四审批人
        /// </summary>
        public int AuditUserId4 { get; set; }
        /// <summary>
        /// 第五审批人
        /// </summary>
        public int AuditUserId5 { get; set; }
        /// <summary>
        /// 第六审批人
        /// </summary>
        public int AuditUserId6 { get; set; }
        /// <summary>
        /// 该规则的审批人数
        /// </summary>
        public int AuditPeopleNumber { get; set; }
        /// <summary>
        /// 审批完成的抄送人
        /// </summary>
        public string CCPerson { get; set; }
 
        /// <summary>
        /// 是否被撤销
        /// </summary>
        public bool IsRevoke { get; set; }
        ////20221115新增审批人审批金额限制，超过审批金额才审批
        ///// <summary>
        ///// 第一审批人金额限制
        ///// </summary>
        //public int AuditUserMoney1 { get; set; }
        ///// <summary>
        ///// 第二审批人金额限制
        ///// </summary>
        //public int AuditUserMoney2 { get; set; }
        ///// <summary>
        ///// 第三审批人金额限制
        ///// </summary>
        //public int AuditUserMoney3 { get; set; }
        ///// <summary>
        ///// 第四审批人金额限制
        ///// </summary>
        //public int AuditUserMoney4 { get; set; }
        ///// <summary>
        ///// 第五审批人金额限制
        ///// </summary>
        //public int AuditUserMoney5 { get; set; }
        ///// <summary>
        ///// 第六审批人金额限制
        ///// </summary>
        //public int AuditUserMoney6 { get; set; }
    }
}
